package com.tedu.api.thread;

import org.testng.annotations.Test;

import java.io.File;
import java.io.FileFilter;
import java.util.ArrayList;
import java.util.List;

public class LambdaHomeWork {
    public static void main(String[] args) {
        /*//1.
        Thread t1=new Thread(()->{ for (int i=0;i<1000;i++){
            System.out.println("One楞One楞");
        }});
        t1.start();
        Runnable r=()->{for (int i=0;i<1000;i++){
            System.out.println("Runnable匿名内部类写法");
        }};
        Thread t2=new Thread(r);
        t2.start();*/

    }
    //2.
    @Test
    public void listAPI(){
        List<String> list = new ArrayList<>();
        list.add("张煜炫");
        list.add("111");
        list.add("666");
        list.forEach((String)-> System.out.println("."+String+"\n"+"."));

    }
}

